<?php $arrMonth  = array(1=>"Jan",2=>"Feb",3=>"Mar",4=>"Apr",5=>"May",6=>"Jun",7=>"Jul",8=>"Aug",9=>"Sep",10=>"Oct",11=>"Nov",12=>"Dec",13=>'ff'); ?>
<div style="font-size:14px">
<b>Academic Year - </b><b>  <?php if(!empty($fy)) { echo $fy['year1']." ".$arrMonth[$fy['month1']]."-".$fy['year2']." ".$arrMonth[$fy['month2']]; }
else
{
	echo "not set";
}?> </b>
</div>

<div id="box1" ><!--box1-->

	<div class="por1"><!--por1-->

		<div class="p1"><!--p1-->

			<div class="p1_pic"><!--p1_pic-->
				<a href="<?php echo $admin_base_url; ?>account/"><img src="<?php echo base_url(); ?>images/account.png" width="100" height="100" alt="School Management" border="0"/></a>
            </div><!--p1_pic-->

			<div class="p1_nam"><!--p1_nam-->
				<a href="<?php echo base_url(); ?>account">Accounts</a>
			</div><!--p1_nam-->

		</div><!--p1-->


		<div class="p1"><!--p1-->

			<div class="p1_pic"><!--p1_pic-->
  				<a href="<?php echo $admin_base_url; ?>event/"><img src="<?php echo base_url(); ?>images/events.png" width="100" height="100" alt="School Management" border="0"/></a>
            </div><!--p1_pic-->

            <div class="p1_nam"><!--p1_nam-->
                <a href="<?php echo $admin_base_url; ?>event/">Events</a>
           </div><!--p1_nam-->

         </div><!--p1-->



        <div class="p1"><!--p1-->

			<div class="p1_pic"><!--p1_pic-->
				<a href="<?php echo $admin_base_url; ?>timetable/"><img src="<?php echo base_url(); ?>images/timetable.png" width="100" height="100" alt="School Management" border="0"/></a>
            </div><!--p1_pic-->

			<div class="p1_nam"><!--p1_nam-->
				<a href="<?php echo $admin_base_url; ?>timetable/">Time Table</a>
			</div><!--p1_nam-->

        </div><!--p1-->



		<div class="p1"><!--p1-->

			<div class="p1_pic"><!--p1_pic-->
			<a href="<?php echo $admin_base_url; ?>staff/"><img src="<?php echo base_url(); ?>images/staff2.png" width="100" height="100" alt="School Management" border="0"/></a>
       		 </div><!--p1_pic-->

			<div class="p1_nam"><!--p1_nam-->
			<a href="<?php echo $admin_base_url; ?>staff/">Staffs</a>
			</div><!--p1_nam-->

		</div><!--p1-->


		<div class="p1"><!--p1-->

			<div class="p1_pic"><!--p1_pic-->
				<a href="<?php echo $admin_base_url; ?>transport/"><img src="<?php echo base_url(); ?>images/bus.png" width="100" height="100" alt="School Management" border="0"/></a>
            </div><!--p1_pic-->

			<div class="p1_nam"><!--p1_nam-->
               <a href="<?php echo $admin_base_url; ?>transport/">Transportation</a>
            </div><!--p1_nam-->

       </div><!--p1-->


    </div><!--por1-->


     <div class="por1"><!--por1-->

		<div class="p1"><!--p1-->

			<div class="p1_pic"><!--p1_pic-->
			<a href="<?php echo $admin_base_url; ?>student/"><img src="<?php echo base_url(); ?>images/student.png" width="100" height="100" alt="School Management" border="0"/></a>
            </div><!--p1_pic-->

			<div class="p1_nam"><!--p1_nam-->
				<a href="<?php echo base_url(); ?>student">Students</a>
			</div><!--p1_nam-->

         </div><!--p1-->



		<div class="p1"><!--p1-->

                <div class="p1_pic"><!--p1_pic-->
                   <a href="#"><img src="<?php echo base_url(); ?>images/school-icon.png" width="100" height="100" alt="School Management" border="0"/></a>
                </div><!--p1_pic-->

				<div class="p1_nam"><!--p1_nam-->
					<a href="#">School</a>
				</div><!--p1_nam-->

		</div><!--p1-->






	</div><!--por1-->


</div><!--box1-->
<table id="tbllist"  style="width:250px;">
<tr> <th colspan="2"> Students </th> </tr>
<tr> <td> Total number of students </td><td><?php  echo $student_tot; ?></td> </tr>
<tr> <td> Male  </td><td><?php  echo $male_tot; ?></td> </tr>
<tr> <td> Female </td><td><?php  echo $female_tot; ?></td> </tr>
<?php $i=0; ?>
<?php foreach($courses as $c)
{
	echo "<tr><td>".$c['name']."</td><td>".$student_tota[$i]. "</td></tr>"; $i++;
}
 ?>
</table>

<table id="tbllist"  style="width:250px;">
<tr> <th colspan="2"> Staff </th> </tr>
<tr> <td> Total number of staff </td><td><?php  echo $staff_tot; ?></td> </tr>
<tr> <td> Male  </td><td><?php  echo $male_staff_tot; ?></td> </tr>
<tr> <td> Female </td><td><?php  echo $female_staff_tot; ?></td> </tr>
<tr> <td> Teachers </td><td><?php  echo $teaching_staff_tot; ?></td> </tr>
<tr> <td> Others </td><td><?php  echo $non_staff_tot; ?></td> </tr>
</table>